package com.example.xm.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class ProductDto {
    private Integer id;
    private Integer baozhiqi;
    private String title;
    private String img;
    private Integer typeId;
    private Integer kucun;
    private BigDecimal price;
    private BigDecimal jinjia;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date daoqiTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date scTime;
    private String descImg;
    private List<String> imgList;
}
